#!/usr/bin/python

import os
from datetime import datetime, timedelta

N = ('e', 'v')
M = (8, 16, 32)
R = 5

for n in N:
    for m in M:
        time = timedelta(seconds=0)
        for r in range(R):
            start = datetime.now()
            os.system('./vector_add.{}{} > /dev/null'.format(n, m))
            time += datetime.now() - start
        print("{}\t{}\t{}".format(n, m, time.total_seconds() / R))
